package edu.hwadee.entity;

import java.util.HashSet;
import java.util.Set;


/**
 * Material entity. @author MyEclipse Persistence Tools
 */

public class Material  implements java.io.Serializable {


    // Fields    

     private Integer materialId;
     private String materialType;
     private String materialName;
     private String barcodeNumber;
     private String materialSpecs;
     private String unit;
     private Float taxRate;
     private Float price;
     private String packingType;
     private Float stackingSpace;
     private Set materialsells = new HashSet(0);
     private Set materialstorages = new HashSet(0);
     private Set carcomplements = new HashSet(0);
     private Set cartypes = new HashSet(0);
     private Set materielbuies = new HashSet(0);
     private Set materieluses = new HashSet(0);
     private Set supplierprices = new HashSet(0);


    // Constructors

    /** default constructor */
    public Material() {
    }

    
    /** full constructor */
    public Material(String materialType, String materialName, String barcodeNumber, String materialSpecs, String unit, Float taxRate, Float price, String packingType, Float stackingSpace, Set materialsells, Set materialstorages, Set carcomplements, Set cartypes, Set materielbuies, Set materieluses, Set supplierprices) {
        this.materialType = materialType;
        this.materialName = materialName;
        this.barcodeNumber = barcodeNumber;
        this.materialSpecs = materialSpecs;
        this.unit = unit;
        this.taxRate = taxRate;
        this.price = price;
        this.packingType = packingType;
        this.stackingSpace = stackingSpace;
        this.materialsells = materialsells;
        this.materialstorages = materialstorages;
        this.carcomplements = carcomplements;
        this.cartypes = cartypes;
        this.materielbuies = materielbuies;
        this.materieluses = materieluses;
        this.supplierprices = supplierprices;
    }

   
    // Property accessors

    public Integer getMaterialId() {
        return this.materialId;
    }
    
    public void setMaterialId(Integer materialId) {
        this.materialId = materialId;
    }

    public String getMaterialType() {
        return this.materialType;
    }
    
    public void setMaterialType(String materialType) {
        this.materialType = materialType;
    }

    public String getMaterialName() {
        return this.materialName;
    }
    
    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getBarcodeNumber() {
        return this.barcodeNumber;
    }
    
    public void setBarcodeNumber(String barcodeNumber) {
        this.barcodeNumber = barcodeNumber;
    }

    public String getMaterialSpecs() {
        return this.materialSpecs;
    }
    
    public void setMaterialSpecs(String materialSpecs) {
        this.materialSpecs = materialSpecs;
    }

    public String getUnit() {
        return this.unit;
    }
    
    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Float getTaxRate() {
        return this.taxRate;
    }
    
    public void setTaxRate(Float taxRate) {
        this.taxRate = taxRate;
    }

    public Float getPrice() {
        return this.price;
    }
    
    public void setPrice(Float price) {
        this.price = price;
    }

    public String getPackingType() {
        return this.packingType;
    }
    
    public void setPackingType(String packingType) {
        this.packingType = packingType;
    }

    public Float getStackingSpace() {
        return this.stackingSpace;
    }
    
    public void setStackingSpace(Float stackingSpace) {
        this.stackingSpace = stackingSpace;
    }

    public Set getMaterialsells() {
        return this.materialsells;
    }
    
    public void setMaterialsells(Set materialsells) {
        this.materialsells = materialsells;
    }

    public Set getMaterialstorages() {
        return this.materialstorages;
    }
    
    public void setMaterialstorages(Set materialstorages) {
        this.materialstorages = materialstorages;
    }

    public Set getCarcomplements() {
        return this.carcomplements;
    }
    
    public void setCarcomplements(Set carcomplements) {
        this.carcomplements = carcomplements;
    }

    public Set getCartypes() {
        return this.cartypes;
    }
    
    public void setCartypes(Set cartypes) {
        this.cartypes = cartypes;
    }

    public Set getMaterielbuies() {
        return this.materielbuies;
    }
    
    public void setMaterielbuies(Set materielbuies) {
        this.materielbuies = materielbuies;
    }

    public Set getMaterieluses() {
        return this.materieluses;
    }
    
    public void setMaterieluses(Set materieluses) {
        this.materieluses = materieluses;
    }

    public Set getSupplierprices() {
        return this.supplierprices;
    }
    
    public void setSupplierprices(Set supplierprices) {
        this.supplierprices = supplierprices;
    }


	@Override
	public String toString() {
		return "Material [materialId=" + materialId + ", materialType=" + materialType + ", materialName="
				+ materialName + ", barcodeNumber=" + barcodeNumber + ", materialSpecs=" + materialSpecs + ", unit="
				+ unit + ", taxRate=" + taxRate + ", price=" + price + ", packingType=" + packingType
				+ ", stackingSpace=" + stackingSpace + ", materialsells=" + materialsells + ", materialstorages="
				+ materialstorages + ", carcomplements=" + carcomplements + ", cartypes=" + cartypes
				+ ", materielbuies=" + materielbuies + ", materieluses=" + materieluses + ", supplierprices="
				+ supplierprices + "]";
	}
  
}